package com.siyu.preplan.planpplan.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.siyu.preplan.planpplan.domain.PlanPPlan;
import com.siyu.preplan.planpplan.mapper.PlanPPlanMapper;
import com.siyu.preplan.planpplan.service.IPlanPPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 预案详情Service业务层处理
 *
 * @author hrhy
 * @date 2024-06-15
 */
@Service
public class PlanPPlanServiceImpl extends ServiceImpl<PlanPPlanMapper, PlanPPlan> implements IPlanPPlanService
{
    @Autowired
    private PlanPPlanMapper planPPlanMapper;

    /**
     * 查询预案详情
     *
     * @param id 预案详情主键
     * @return 预案详情
     */
    @Override
    public PlanPPlan selectPlanDPlanById(String id)
    {
        return planPPlanMapper.selectPlanDPlanById(id);
    }

    /**
     * 查询预案详情列表
     *
     * @param planDPlan 预案详情
     * @return 预案详情
     */
    @Override
    public List<PlanPPlan> selectPlanDPlanList(PlanPPlan planDPlan)
    {
        return planPPlanMapper.selectPlanDPlanList(planDPlan);
    }

    /**
     * 新增预案详情
     *
     * @param planDPlan 预案详情
     * @return 结果
     */
    @Override
    public int insertPlanDPlan(PlanPPlan planDPlan)
    {
            return planPPlanMapper.insertPlanDPlan(planDPlan);
    }

    /**
     * 修改预案详情
     *
     * @param planDPlan 预案详情
     * @return 结果
     */
    @Override
    public int updatePlanDPlan(PlanPPlan planDPlan)
    {
        return planPPlanMapper.updatePlanDPlan(planDPlan);
    }

    /**
     * 批量删除预案详情
     *
     * @param ids 需要删除的预案详情主键
     * @return 结果
     */
    @Override
    public int deletePlanDPlanByIds(String[] ids)
    {
        return planPPlanMapper.deletePlanDPlanByIds(ids);
    }

    /**
     * 删除预案详情信息
     *
     * @param id 预案详情主键
     * @return 结果
     */
    @Override
    public int deletePlanDPlanById(String id)
    {
        return planPPlanMapper.deletePlanDPlanById(id);
    }
}


